from django.shortcuts import render
from django.http import HttpResponse

"""主页视图"""


def jwt_response_payload_handler(token, user=None, request=None):
    """
    登录成功后自定义返回
    :param token:
    :param user:
    :param request:
    :return:
    """
    return {
        "code": 200,
        "msg": '请求成功',
        "data": token
    }


def test_(request):
    return HttpResponse("""
    <footer>
    <h5 align="center">
    <a href="https://beian.miit.gov.cn/" target="_blank">蜀ICP备2021029783号-1</a>
    </h5>
    </footer>

    """)
